import React, { Component } from 'react'
import Child from './Child'

export default class Parent extends Component {
  state = {
    count: '100'
  }

  render () {
    return (
      <div>
        Parent
        <hr />
        {/* <Child
          count={this.state.count}
          callback={value => this.setState({ count: value })}
        /> */}
        {/* <Child count={this.state.count} /> */}
        <Child count={this.state.count} />
        {/* <Child /> */}
      </div>
    )
  }
}
